package com.sentrix.auto.printercenter.infrastructure.agentserver.dto;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * 打印机状态消息没有uid,qztray无法发送回uid
 */
@Data
public class PrinterStatusMsg {
    private String printerName;
    private String eventType;
    private String statusText;
    private String severity;
    private String statusCode;
    private String message;
    private String type;

    /**
     * 后补信息
     */
    private String agentCode;


    public Boolean isOnline() {
    	return !StringUtils.equals(statusText, "OFFLINE");
    }
}
